package com.itheima.crops.feign;

import com.itheima.entity.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(name = "crops")
public interface DiseaseFeign {
    /**
     * 农作物病虫害全查
     * @return
     */
    @GetMapping("/disease/findAll")
    public Result findAll();

    /**
     * 农作物病虫害根据id查询
     * @param id
     * @return
     */
    @GetMapping("/disease/findById/{id}")
    public Result findById(@PathVariable("id") Integer id);
}
